package com.study.java.jinjie.jihe.lianxi.wu;

public class Student {
    private long num;
    private String name;
    private  int chengJI;

    public Student(long num, String name, int chengJI) {
        this.num = num;
        this.name = name;
        if (chengJI < 101) {
            this.chengJI = chengJI;
        }else {
            this.chengJI = -1;
            System.out.println("无效成绩!");
        }
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChengJI() {
        return chengJI;
    }

    public void setChengJI(int chengJI) {
        this.chengJI = chengJI;
    }
}
